import VueRouter from 'vue-router';

import home from "./components/tabbar/HomeContainer.vue";
import vip from "./components/tabbar/vipContainer.vue";
import shopcar from "./components/tabbar/ShopcarContainer.vue";
import search from "./components/tabbar/searchContainer.vue";

import news from './components/news/NewsList.vue';//新闻列表
import newsInfo from './components/news/NewsInfo.vue';

import photolist from './components/photos/PhotoList.vue';
import photoInfo from './components/photos/PhotoInfo.vue';

import goodslist from './components/goods/GoodsList.vue';// 单击 "商品购买" 显示的页面
import goodsinfo from './components/goods/GoodsInfo.vue'



var vr = new VueRouter({
    routes:[
        {path:"/",redirect:"home"},
        {path:"/home",component: home},
        {path:"/vip",component: vip},
        {path:"/shopcar",component: shopcar},
        {path:"/search",component: search},

        {path:"/home/news",component: news},
        {path:"/home/news/newsInfo/:id",component: newsInfo},

        {path:"/home/photolist",component: photolist},
        {path:"/home/photoList/photoInfo/:id",component: photoInfo},

        {path:"/home/goodslist",component: goodslist},
        {path:"/home/goodslist/goodsinfo/:id",component: goodsinfo},
    ],
    linkActiveClass: 'mui-active'
})

export default vr;